package com.egao.api.controller.nont;


import com.egao.common.core.web.BaseController;
import com.egao.common.core.web.JsonResult;
import com.egao.common.system.service.OperRecordService;
import com.egao.gps.entity.CarPosition;
import com.egao.gps.service.CarPositionService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.security.access.prepost.PreAuthorize;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.servlet.http.HttpServletRequest;

//import com.egao.orderB.entity.Bill;
//import com.egao.orderB.service.BillService;

/**
 * api登录相关接口
 * Created by wangfan on 2019-05-29 下午 3:43.
 * http://localhost/swagger-ui.html
 */
//mongodb
//https://www.cnblogs.com/yinjihuan/p/10766652.html
@RequestMapping("/api/nt/gps")
@RestController
@Api(value = "地图模块",tags = {"地图模块"})
public class ApiGpsNtController extends BaseController {
    @Autowired
    private OperRecordService operRecordService;
    @Autowired
    private CarPositionService carPositionService;

    /**
     * 所有地图模块  所有车辆 但是要钱
     */
    @PreAuthorize("hasAuthority('gps:gps:list')")
    @PostMapping("/trajectory")
    @ApiOperation(value = "中交兴路的gps  所有车辆 但是要钱",notes = "" +
            "vno: 车牌 浙Be2343\n"+
            "date1: 时间\n"+
            "date2: 时间\n"+
            "hgt: 海拔\n"+
            "mlg: 里程 单位：百米\n"+
            "",httpMethod = "POST")
    public JsonResult trajectory(CarPosition carPosition, HttpServletRequest request)  throws Exception{
//        return carPositionService.trajectory(carPosition);
        return null;
    }



}
